<?php
	class Lienhe extends  CI_Controller
    {
        public function __construct() {
            parent::__construct();
            $this->load->helper('url');
        }

        public function index()
        {
            $this->load->model('Nkdefault', 'default');
            $this->load->model('admin/managethongbao', 'thongbao');      
            $temp['title']="Liên hệ";
            $temp['template']='lienhe';
            $temp['data']['info']="Liên hệ";  
            $temp['danhmuc']['currentItem'] = 'lienhe';
            $temp['danhmuc']['menu'] = $this->default->loadDanhMuc(); 
            $temp['online'] = $this->useronline->countOnline();
             //load thong bao
        $thongbao = $this->thongbao->LoadThongBao(null, null, 1, 0);
        if(!empty($thongbao)) $temp['thongbao'] = $thongbao->result_array();       
            $this->load->view("template/layout",$temp);	 
        }
    }
?>